<?php
/**
 * OAuthException class file.
 *
 * @author Zhang Jinlong <466028373@qq.com>
 * @link http://www.ijianzhi.cn
 * @copyright Copyright &copy; 2013 DianJin Soft
 */

class OAuthException extends Exception
{
    /**
     * 错误编码
     * @var string
     */
    public $errorCode;

    /**
     * 初始化
     * @param string $message
     * @param string $errorCode
     */
    public function __construct($message, $errorCode, $code = 0)
    {
        $this->errorCode = $errorCode;

        parent::__construct($message, $code);
    }
}